package com.ctshk.rpc.custom.service;


import com.ctshk.rpc.custom.req.trip.TripScheduleAmountStatisticsReq;

import java.math.BigDecimal;

/**
 * <p>
 * 团期金额统计 服务类
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-03-12
 */
public interface ICustomizedTripScheduleAmountStatisticsService{

    /**
     * 更新团期金额统计
     * @param req
     * @return
     */
    Integer updateAmountStatistics(TripScheduleAmountStatisticsReq req);

    /**
     * 团期数据回滚
     * @param scheduleId
     * @param totalPeople
     * @param totalTourFee
     * @param userId
     * @return
     */
    boolean rollBackStatistics(Long scheduleId,Integer totalPeople, BigDecimal totalTourFee,Long userId);
}
